package org.example.springioc.Controller;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

@ComponentScan("org.example.springioc.Config.UserConfig;") //这个注解是加路径的, 默认路径必须要和启动类路径在同一级目录下面
@Controller
public class HelloController {

    public void print() {
    System.out.println("HelloController");
    }
}
